package com.puboot.module.admin.media;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description
 * @Author 申紫微
 * @Data 2020-02-14 16:17:47
 * @Version 1.0
 */
@Slf4j
public class BaseAction {

    protected Logger logger = LoggerFactory.getLogger(getClass());
    protected HttpServletRequest request;
    protected HttpServletResponse response;

    @ModelAttribute
    public void setRequestAndResopnse(HttpServletRequest request, HttpServletResponse response) {
        this.request = request;
        this.response = response;
    }


}
